<?php

class Benservi_Forms_InfoBanco extends Zend_Form{

    public function init()
    {
       
        $banco_id = new Zend_Form_Element_Hidden('banco_id');

        $banco = new Zend_Form_Element_Text('banco');
        $banco->setLabel('Banco')
              ->setRequired(true)
              ->setOptions(array('class' => 'input-m'))
              ->setAttrib('readonly', true);

        $banco->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $agencia = new Zend_Form_Element_Text('agencia');
        $agencia->setLabel('Agencia')
             ->setRequired(true)
             ->addErrorMessage("Por favor informe a agencia")
             ->setOptions(array('class' => 'input-m'));

        $agencia->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $conta = new Zend_Form_Element_Text('conta');
        $conta->setLabel('Conta')
             ->setRequired(true)
             ->addErrorMessage("Por favor informe a conta")
             ->setOptions(array('class' => 'input-m'));

        $conta->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
        ));

        $carteira = new Zend_Form_Element_Text('carteira');
        $carteira->setLabel('Carteira')
             ->setRequired(true)
                ->addErrorMessage("Por favor informe a carteira")
             ->setOptions(array('class' => 'input-m'));

        $carteira->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $convenio = new Zend_Form_Element_Text('convenio');
        $convenio->setLabel('Convenio')
             ->setRequired(false)                
             ->setOptions(array('class' => 'input-m'));

        $convenio->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $contrato = new Zend_Form_Element_Text('contrato');
        $contrato->setLabel('Contrato')
             ->setRequired(false)
             ->setOptions(array('class' => 'input-m'));

        $contrato->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $cedente = new Zend_Form_Element_Text('cedente');
        $cedente->setLabel('Cedente')
             ->setRequired(true)
                ->addErrorMessage("Por favor informe o cedente")
             ->setOptions(array('class' => 'input-m'));

        $cedente->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $especie = new Zend_Form_Element_Text('especie');
        $especie->setLabel('Espécie')
             ->setRequired(true)
             ->addErrorMessage("Por favor informe a espécie")
             ->setOptions(array('class' => 'input-m'));

        $especie->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $cpf_npj = new Zend_Form_Element_Text('cpf_cnpj');
        $cpf_npj->setLabel('CNPJ')
             ->setRequired(true)
             ->addErrorMessage("Por favor informe o CPF/CNPJ")
             ->setOptions(array('class' => 'input-m'));

        $cpf_npj->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $nummoeda = new Zend_Form_Element_Text('nummoeda');
        $nummoeda->setLabel('Numero Moeda')
             ->setRequired(true)
             ->addErrorMessage("Por favor informe o tipo da moeda")
             ->setOptions(array('class' => 'input-m'));

        $nummoeda->setDecorators(array(
                   'ViewHelper',
                  'Description',
                  array('Label', array('tag' => null)),
                  array('HtmlTag', array('tag' => 'p')),
           ));

        $act = new Zend_Form_Element_Submit('Salvar');

        $act->setDecorators(array(
                   'ViewHelper',
                  'Description',
           ));

        $act->setAttrib('class', 'button-left');

        $this->addElements(array($act, $banco_id, $banco, $cedente, $cpf_npj, $agencia,$conta ,$carteira, $convenio, $contrato,$especie, $nummoeda));
       
    }

}

?>
